interface fetchExchangeRecordDetailAPIResData {
  code: number
  msg: string
  time: string
  data: ExchangeRecordDetail
}

interface fetchExchangeRecordDetailAPIParams {
  id: string
}

export function fetchExchangeRecordDetailAPI(params: fetchExchangeRecordDetailAPIParams, token: string) {
  return httpInstance.get<fetchExchangeRecordDetailAPIResData, fetchExchangeRecordDetailAPIParams>(
    '/api/score/scorehistorydetail',
    { params, headers: { token } },
  )
}
